import request from '@/utils/request-server'

// 获取考试列表
export const getExaminationByUserId = (params) => {
    return request({
        url: '/zym/scoreAnalysisExport/getExaminationByUserId',
        method: 'get',
        params
    });
};

// 获得班级信息
export const getClassesByUserId = (params) => {
    return request({
        url: '/zym/scoreAnalysisExport/getClassesByUserId',
        method: 'get',
        params
    });
};

// 获得学生成绩
export const getStudentScore = (data) => {
    return request({
        url: '/zym/scoreAnalysisExport/getStudentPaper',
        method: 'post',
        data
    });
};  


// 获取考试信息和学生成绩
export function getExaminationAndStudentScore(data) {
    return request({
        url: '/zym/scoreAnalysisExport/getExaminationAndStudentScore',
        method: 'post',
        data
    });
}

// 获得知识点得分率数据
export const getKnowledgePointRate = (params) => {
    return request({
        url: '/zym/scoreAnalysisExport/getKnowledgePointRate',
        method: 'get',
        params
    });
}


// 获得试题质量分析数据
export function getQuestionQuality(params) {
    return request({
        url: '/zym/scoreAnalysisExport/getQuestionQuality',
        method: 'get',
        params
    });
}   

// 获取异常试题信息
export function getAbnormalQuestion(params) {
    return request({
        url: '/zym/scoreAnalysisExport/getAbnormalQuestion',
        method: 'get',
        params
    });
}   
